package com.lanji.sensitive.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Twilight
 * @desc
 * @createTime 2021-01-27-20:21
 */
@Component
@ConfigurationProperties(prefix = "sensitive")
@Data
public class SensitiveWordsConfig {

    /**
     * 敏感词列表
     */
    private List<String> words = new ArrayList<>();
    //启用内置配置文件词
    private Boolean yamlConfig;
}
